<template>
  <div>
    <p :class="{ active: t }">动态class</p>
    <p class="test" :class="{ active: t }">我是p</p>
    <p :class="['a', 'b', 'c']">多个类名</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      t: true,
    };
  },
};
</script>

<style>
</style>